package com.bkgy.modular.tbmodelpdiset.controller;

import com.alibaba.fastjson.JSONObject;
import com.bkgy.modular.tbmodelpdiset.service.TbModelPdiSetService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ZhuHongKai
 * @version 1.0
 * @ClassName TbModelPdiSetController
 * @date 2022/12/13 16:11
 */
@RestController
@RequestMapping("/tbModelPdiSet")
public class TbModelPdiSetController {
    @Resource
    private TbModelPdiSetService tbModelPdiSetService;

    @PostMapping("/findByPageData")
    public ResultData findByPageData(@RequestBody JSONObject jsonObject) {
        return tbModelPdiSetService.findByPageData(jsonObject);
    }

    @PostMapping("/findByPageData2130")
    public ResultData findByPageData2130(@RequestBody JSONObject jsonObject) {
        return tbModelPdiSetService.findByPageData2130(jsonObject);
    }
}
